import request from '@/utils/requestAdmin'

// 获取摄影师列表
export function getPhotographerList(params) {
  return request.get('/photographers/page', { params })
}

// 添加摄影师
export function addPhotographer(data) {
  return request.post('/photographers/register', data)
}

// 更新摄影师信息
export function updatePhotographer(data) {
  return request.put('/photographers/update', data)
}

// 删除摄影师
export function deletePhotographer(id) {
  return request.delete(`/photographers/delete/${id}`)
}

// 获取摄影师详情
export function getPhotographerDetail(id) {
  return request.get(`/photographers/detail/${id}`)
}

// 重置密码
export function resetPassword(id) {
  return request.post(`/photographers/resetPassword/${id}`)
} 